import request from '@/plugin/axios'

export function pageTable(query) {
    return request({
        url: '/codegen/generator/page',
        method: 'get',
        params: query
    })
}

export function getDbOptions() {
    return request({
        url: '/codegen/generator/db/options',
        method: 'get'
    })
}

export function generateByModule(val, obj) {
    return request({
        url: '/codegen/generator/module/' + val,
        method: 'post',
        data: obj
    })
}


